<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen; http://apigen.org" />

	<title>Class Nette\Web\SessionNamespace</title>

	<link rel="stylesheet" href="resources/style.css?v=2011071314" type="text/css" media="all" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Nette Framework API documentation" />
	<script type="text/javascript" src="resources/combined.js"></script>
	<script type="text/javascript" src="allclasses.js"></script>
</head>

<body>
<div id="left">
	<a href="allclasses.html">All Classes</a>

	<h3>Namespaces</h3>
	<ul>
		<li><a href="namespace-none.html">none</a>
		</li>
		<li><a href="namespace-Nette.html">Nette</a>
		</li>
		<li><a href="namespace-Nette.Application.html">Nette\Application</a>
		</li>
		<li><a href="namespace-Nette.Caching.html">Nette\Caching</a>
		</li>
		<li><a href="namespace-Nette.Collections.html">Nette\Collections</a>
		</li>
		<li><a href="namespace-Nette.Config.html">Nette\Config</a>
		</li>
		<li><a href="namespace-Nette.Forms.html">Nette\Forms</a>
		</li>
		<li><a href="namespace-Nette.IO.html">Nette\IO</a>
		</li>
		<li><a href="namespace-Nette.Loaders.html">Nette\Loaders</a>
		</li>
		<li><a href="namespace-Nette.Mail.html">Nette\Mail</a>
		</li>
		<li><a href="namespace-Nette.Reflection.html">Nette\Reflection</a>
		</li>
		<li><a href="namespace-Nette.Security.html">Nette\Security</a>
		</li>
		<li><a href="namespace-Nette.Templates.html">Nette\Templates</a>
		</li>
		<li class="active"><a href="namespace-Nette.Web.html">Nette\Web</a>
		</li>
		<li><a href="namespace-PHP.html">PHP</a>
		</li>
	</ul>

	<hr />

	<h3>Classes</h3>

	<ul>
		<li><a href="Nette.Web.Ftp.html">Ftp</a></li>
		<li><a href="Nette.Web.Html.html">Html</a></li>
		<li><a href="Nette.Web.HttpContext.html">HttpContext</a></li>
		<li><a href="Nette.Web.HttpRequest.html">HttpRequest</a></li>
		<li><a href="Nette.Web.HttpResponse.html">HttpResponse</a></li>
		<li><a href="Nette.Web.HttpUploadedFile.html">HttpUploadedFile</a></li>
		<li><a href="Nette.Web.Session.html">Session</a></li>
		<li class="active"><a href="Nette.Web.SessionNamespace.html">SessionNamespace</a></li>
		<li><a href="Nette.Web.Uri.html">Uri</a></li>
		<li><a href="Nette.Web.UriScript.html">UriScript</a></li>
		<li><a href="Nette.Web.User.html">User</a></li>
	</ul>

	<h3>Interfaces</h3>

	<ul>
		<li><a href="Nette.Web.IHttpRequest.html">IHttpRequest</a></li>
		<li><a href="Nette.Web.IHttpResponse.html">IHttpResponse</a></li>
		<li><a href="Nette.Web.IUser.html">IUser</a></li>
	</ul>

	<h3>Exceptions</h3>

	<ul>
		<li><a href="Nette.Web.FtpException.html">FtpException</a></li>
	</ul>
</div>

<div id="right">
	<form action="http://www.google.com/cse" id="search" onsubmit="if(this.q.value.indexOf('more:')==-1)this.q.value+=' more:api'">
		<input type="hidden" name="cx" value="011549293477758430224:vxofa9ufnhc" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" class="text" /><input type="submit" value="Search" />
	</form>

<div id="navigation">
	<ul>
		<li><a href="overview.html" title="Summary of all namespaces">Overview</a></li>
		<li><a href="namespace-Nette.Web.html" title="Summary of Nette\Web">Namespace</a></li>
		<li class="active">Class</li>
		<li><a href="elements.html">Elements</a></li>
	</ul>
</div>

<div id="content">
	<div id="classSummary">
		<p>namespace <a href="namespace-Nette.Web.html">Nette\Web</a></p>

		<h1>Class SessionNamespace</h1>

		<div class="classDescription">
		
<p>Session namespace for Session.</p>

		</div>

		<dl class="tree">
			<dd style="padding-left:0px">
				<a href="Nette.Object.html">Nette\Object</a>
				
			</dd>
			<dd style="padding-left:30px">
				<img src="resources/inherit.gif" alt="extended by" />
<b>Nette\Web\SessionNamespace</b>				 implements <a href="IteratorAggregate.html">IteratorAggregate</a>, <a href="Traversable.html">Traversable</a>, <a href="ArrayAccess.html">ArrayAccess</a>
			</dd>
		</dl>



		<div class="classInfo">
			<b>Final Class</b><br />
				<b>Author:</b> David Grudl<br />
			<b>Located at</b> <a href="source-Web.SessionNamespace.php.html#18">/Web/SessionNamespace.php</a><br />
		</div>
	</div>


	<div id="methodSummary">
		<table class="summary">
		<caption>Method Summary</caption>
		<tr data-order="1 __construct" id="___construct">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___construct">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#36" title="go to source code"><b>__construct</b></a>(
					
					<var>&amp; $data</var>, 
					
					<var>&amp; $meta</var>
			)</code>

			<div class="short">
				
<p>Do not call directly. Use Session::getNamespace().</p>

			</div>

			<div class="detailed">
				
<p>Do not call directly. Use Session::getNamespace().</p>






			</div>
			</td>
		</tr>
		<tr data-order="1 getIterator" id="_getIterator">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="ArrayIterator.html">ArrayIterator</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getIterator">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#47" title="go to source code"><b>getIterator</b></a>(
			)</code>

			<div class="short">
				
<p>Returns an iterator over all namespace variables.</p>

			</div>

			<div class="detailed">
				
<p>Returns an iterator over all namespace variables.</p>




					<h4>Returns</h4>
					<div class="smallList"><a href="ArrayIterator.html">ArrayIterator</a> </div>


					<h4>Implementation of</h4>
					<div class="smallList"><code><a href="IteratorAggregate.html#_getIterator">IteratorAggregate::getIterator</a></code></div>
			</div>
			</td>
		</tr>
		<tr data-order="1 __set" id="___set">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___set">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#62" title="go to source code"><b>__set</b></a>(
					string
					<var>$name</var>, 
					mixed
					<var>$value</var>
			)</code>

			<div class="short">
				
<p>Sets a variable in this session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Sets a variable in this session namespace.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
						<code>$value</code> mixed value<br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="1 __get" id="___get">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				mixed
				&amp;
				</code>
			</td>

			<td>
			<a class="anchor" href="#___get">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#78" title="go to source code"><b>__get</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Gets a variable from this session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Gets a variable from this session namespace.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">mixed </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 __isset" id="___isset">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___isset">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#94" title="go to source code"><b>__isset</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Determines whether a variable in this session namespace is set.</p>

			</div>

			<div class="detailed">
				
<p>Determines whether a variable in this session namespace is set.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 __unset" id="___unset">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___unset">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#106" title="go to source code"><b>__unset</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Unsets a variable in this session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Unsets a variable in this session namespace.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="1 offsetSet" id="_offsetSet">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_offsetSet">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#118" title="go to source code"><b>offsetSet</b></a>(
					string
					<var>$name</var>, 
					mixed
					<var>$value</var>
			)</code>

			<div class="short">
				
<p>Sets a variable in this session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Sets a variable in this session namespace.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
						<code>$value</code> mixed value<br />
					</div>



					<h4>Implementation of</h4>
					<div class="smallList"><code><a href="ArrayAccess.html#_offsetSet">ArrayAccess::offsetSet</a></code></div>
			</div>
			</td>
		</tr>
		<tr data-order="1 offsetGet" id="_offsetGet">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				mixed
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_offsetGet">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#131" title="go to source code"><b>offsetGet</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Gets a variable from this session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Gets a variable from this session namespace.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">mixed </div>


					<h4>Implementation of</h4>
					<div class="smallList"><code><a href="ArrayAccess.html#_offsetGet">ArrayAccess::offsetGet</a></code></div>
			</div>
			</td>
		</tr>
		<tr data-order="1 offsetExists" id="_offsetExists">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_offsetExists">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#143" title="go to source code"><b>offsetExists</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Determines whether a variable in this session namespace is set.</p>

			</div>

			<div class="detailed">
				
<p>Determines whether a variable in this session namespace is set.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


					<h4>Implementation of</h4>
					<div class="smallList"><code><a href="ArrayAccess.html#_offsetExists">ArrayAccess::offsetExists</a></code></div>
			</div>
			</td>
		</tr>
		<tr data-order="1 offsetUnset" id="_offsetUnset">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_offsetUnset">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#155" title="go to source code"><b>offsetUnset</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Unsets a variable in this session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Unsets a variable in this session namespace.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string name<br />
					</div>



					<h4>Implementation of</h4>
					<div class="smallList"><code><a href="ArrayAccess.html#_offsetUnset">ArrayAccess::offsetUnset</a></code></div>
			</div>
			</td>
		</tr>
		<tr data-order="1 setExpiration" id="_setExpiration">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Web.SessionNamespace.html">SessionNamespace</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setExpiration">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#167" title="go to source code"><b>setExpiration</b></a>(
					string|int|<a href="DateTime.html">DateTime</a>
					<var>$time</var>, 
					mixed
					<var>$variables</var> = <span class="php-keyword1">NULL</span>
			)</code>

			<div class="short">
				
<p>Sets the expiration of the namespace or specific variables.</p>

			</div>

			<div class="detailed">
				
<p>Sets the expiration of the namespace or specific variables.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$time</code> string|int|<a href="DateTime.html">DateTime</a> time, value 0 means „until the browser is closed“<br />
						<code>$variables</code> mixed optional list of variables / single variable to expire<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Web.SessionNamespace.html">SessionNamespace</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 removeExpiration" id="_removeExpiration">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_removeExpiration">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#202" title="go to source code"><b>removeExpiration</b></a>(
					mixed
					<var>$variables</var> = <span class="php-keyword1">NULL</span>
			)</code>

			<div class="short">
				
<p>Removes the expiration from the namespace or specific variables.</p>

			</div>

			<div class="detailed">
				
<p>Removes the expiration from the namespace or specific variables.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$variables</code> mixed optional list of variables / single variable to expire<br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="1 remove" id="_remove">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_remove">#</a>
			<code class="nowrap">
				<a href="source-Web.SessionNamespace.php.html#225" title="go to source code"><b>remove</b></a>(
			)</code>

			<div class="short">
				
<p>Cancels the current session namespace.</p>

			</div>

			<div class="detailed">
				
<p>Cancels the current session namespace.</p>






			</div>
			</td>
		</tr>

		</table>
	</div>


	<h2>Methods Inherited From <a href="Nette.Object.html#methodSummary">Nette\Object</a></h2>
	<div class="box"><code>
		<a href="Nette.Object.html#_getClass" class="deprecated">getClass()</a>, <a href="Nette.Object.html#_getReflection">getReflection()</a>, <a href="Nette.Object.html#___call">__call()</a>, <a href="Nette.Object.html#___callStatic">__callStatic()</a>, <a href="Nette.Object.html#_extensionMethod">extensionMethod()</a>, <a href="Nette.Object.html#___get">__get()</a>, <a href="Nette.Object.html#___set">__set()</a>, <a href="Nette.Object.html#___isset">__isset()</a>, <a href="Nette.Object.html#___unset">__unset()</a>
	</code></div>





	<div id="propertySummary">
		<table class="summary">
		<caption>Property Summary</caption>
		<tr data-order="warnOnUndefined" id="$warnOnUndefined">
			<td align="right" width="1%"><code class="nowrap">
				 
				bool
			</code></td>

			<td width="1%"><var>$warnOnUndefined</var></td>
			<td><pre><span class="php-keyword1">false</span></pre></td>
			<td> <a href="#$warnOnUndefined" class="anchor">#</a></td>
		</tr>

		</table>
	</div>


</div>

	<div id="footer">
		Nette Framework API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</body>
</html>
